package com.site.springboot.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
@Data
@TableName("tb_news_category")
public class NewsCategory {
    /*
    *类别id
    * */
    @TableId(type = IdType.AUTO)
    private Long categoryId;
    /*
    *类别名称
    * */
    private String categoryName;
    /*
    *是否已删除
    * 0-未删除 1-已删除
    * */
    private Byte isDeleted;
    /*
    * 创建时间
    * */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}